 /*-----------------------------------------------File Info------------------------------------------------
** File Name:               bsp config.h  
** Last modified date:      20220403
** Last version:            V0.1
** Description:             
**
**--------------------------------------------------------------------------------------------------------            
** Created date:            20220403
** author:                  YLY
** Version:                 V0.1
** Descriptions:            
**--------------------------------------------------------------------------------------------------------*/

#ifndef _BSP_CONFIG_H_
#define _BSP_CONFIG_H_

#define   BSP_MCU_M058LDN			1U		/* 单片机型号 */
#define   BSP_MCU_GD32E23x			2U		/* 单片机型号 */
#define   BSP_MCU_GD32F3x0			3U		/* 单片机型号 */
#define   BSP_MCU_GD32F1x0			4U		/* 单片机型号 */
#define   BSP_MCU_APM32F0xx			5U
#ifdef GD32E23x
	#define   BSP_MCU_TYPE				BSP_MCU_GD32E23x
#endif

#ifdef GD32F3x0
	#define   BSP_MCU_TYPE				BSP_MCU_GD32F3x0
#endif

#ifdef GD32F1x0
	#define   BSP_MCU_TYPE				BSP_MCU_GD32F1x0
#endif

#ifdef APM32F0xx
	#define   BSP_MCU_TYPE				BSP_MCU_APM32F0xx
#endif

/* C库 */
#include <stdbool.h>
#include <stdio.h>
#include <string.h>

/* DEVICE库 */
#if BSP_MCU_TYPE == BSP_MCU_GD32E23x
	#include "gd32e23x.h"	
	#define DELAY_MS_TIMES				0x2f00	//执行1mS循环次数
#elif BSP_MCU_TYPE == BSP_MCU_GD32F3x0
	#include "gd32f3x0.h"
	#define DELAY_MS_TIMES				0x2f00	//执行1mS循环次数
#elif BSP_MCU_TYPE == BSP_MCU_GD32F1x0
	#include "gd32f1x0.h"	
#elif BSP_MCU_TYPE == BSP_MCU_APM32F0xx
	#include "apm32f0xx.h"
	#include "apm32f0xx_libopt.h"
#endif





extern void bspDelayMs(uint32_t delay);
#endif /*_BSP_CONFIG_H_  */










